foreach(module ${YOOHOO_MODULES})
	set(YOOHOO_MODULE_NAME ${module})
	add_subdirectory(${module})
endforeach(module ${YOOHOO_MODULES})

# Enable to show console on debug build type(WIN32)
if(WIN32)
   set_target_properties(yoohoo PROPERTIES LINK_FLAGS_DEBUG "/SUBSYSTEM:CONSOLE")
   set_target_properties(yoohoo PROPERTIES COMPILE_DEFINITIONS_DEBUG "_CONSOLE")
   set_target_properties(yoohoo PROPERTIES LINK_FLAGS_RELWITHDEBINFO "/SUBSYSTEM:CONSOLE")
   set_target_properties(yoohoo PROPERTIES COMPILE_DEFINITIONS_RELWITHDEBINFO "_CONSOLE")
   set_target_properties(yoohoo PROPERTIES LINK_FLAGS_RELEASE "/SUBSYSTEM:WINDOWS")
   set_target_properties(yoohoo PROPERTIES LINK_FLAGS_MINSIZEREL "/SUBSYSTEM:WINDOWS")
endif(WIN32)
